package com.kgc.scd.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @program: com.kgc.scd.service
 * @author: HarryXzy
 * @create: 2022-06-14 09:53
 * @description:
 **/
@FeignClient(value = "blmall-server-xzy-8101")
public interface SensitiveWordService {

    @GetMapping("/allSensitiveWord")
    Map<String, Object> allSensitiveWord(@RequestParam("pageNo") int pageNo, @RequestParam("pageSize")int pageSize);

    @DeleteMapping("/deleteSensitiveWord")
    Map<String, Object> deleteSensitiveWord(@RequestParam("sensitiveWord") String sensitiveWord);

    @PostMapping("/addSensitiveWord")
    Map<String, Object> addSensitiveWord(@RequestParam("categoryId")String categoryId, @RequestParam("sensitiveWord")String sensitiveWord);

    @PostMapping("/sensitiveWordType")
    Map<String, Object> getsensitiveWordType();
}
